package com.qys.livesMall.app.user.service;

import com.qys.livesMall.app.user.model.dto.sys.LoginInfoDTO;
import com.qys.livesMall.app.user.model.dto.sys.SysUserChannelEditDTO;
import com.qys.livesMall.app.user.model.dto.sys.UserQuery;
import com.qys.livesMall.app.user.model.entity.UserShopStatistics;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 店铺和会员通用统计表 服务类
 * </p>
 *
 * @author
 * @since 2023-08-01
 */
public interface UserShopStatisticsService extends IService<UserShopStatistics> {

    UserShopStatistics getbyUserName(String superior);

    Integer updateUserIP(LoginInfoDTO loginInfoDTO);

    /**
     * 获取用户的
     * @param userId
     * @return
     */
    UserShopStatistics selectByUserId(Long userId);
    /**
     * 获取全部用户的数据
     * @return
     */
    List<UserShopStatistics> getUserShopStatisticsAll();

    List<Long> getUserId(UserQuery query);

    List<UserShopStatistics> listByUserIds(List<Long> userIds);

    /**
     * 根据团ID查询团下店铺ID
     * @param list
     * @return
     */
    List<Long> getShopIdsByTeamId(List<Long> list);
}
